const Mock = require('mockjs')
 
const treesData = [{
     "id": 1,
     "label": "系统设置",
     "parent_id": null,
     "url": null,
     "depth": 0,
     "child_num": 3,
     "description": "系统设置",
     "children": [{
         "id": 2,
         "label": "菜单管理",
         "parent_id": 1,
         "url": null,
         "depth": 1,
         "child_num": 5,
         "description": "菜单管理",
         "expanded":false,
         "children": [{
             "id": 3,
             "label": "查看",
             "parent_id": 2,
             "url": "/menus",
             "depth": 2,
             "child_num": 0,
             "description": "menu manager",
         }, {
             "id": 4,
             "label": "编辑",
             "parent_id": 2,
             "url": "/roles",
             "depth": 2,
             "child_num": 0,
             "description": "Role Manager",
         }]
     },
     {
         "id": 2-1,
         "label": "角色管理",
         "parent_id": 1,
         "url": null,
         "depth": 1,
         "child_num": 5,
         "description": "菜单管理",
         "expanded":false,
         "children": [{
             "id": 2-1-1,
             "label": "查看",
             "parent_id": 2-1,
             "url": "/menus",
             "depth": 2,
             "child_num": 0,
             "description": "menu manager",
         }, {
             "id": 2-1-2,
             "label": "编辑",
             "parent_id": 2-1,
             "url": "/roles",
             "depth": 2,
             "child_num": 0,
             "description": "Role Manager",
         }]
     }]
 }, {
     "id": 6,
     "label": "机构用户",
     "parent_id": null,
     "url": null,
     "depth": 0,
     "child_num": 2,
     "description": "Custom Manager",
     "children": [{
         "id": 7,
         "label": "用户管理",
         "parent_id": 6,
         "url": "/customs",
         "depth": 1,
         "child_num": 0,
         "description": "CustomList"
     },
     {
         "id": 6-2,
         "label": "机构管理",
         "parent_id": 6,
         "url": "/customs",
         "depth": 1,
         "child_num": 0,
         "description": "机构管理"
     },
     {
         "id": 6-3,
         "label": "区域管理",
         "parent_id": 6,
         "url": "/customs",
         "depth": 1,
         "child_num": 0,
         "description": "区域管理"
     }]
 }, {
     "id": 8,
     "label": "导航",
     "parent_id": null,
     "url": null,
     "depth": 0,
     "description": "Template Manager"
 }]
Mock.mock('/api/system/menuList','get',treesData);